package team.lourd.network.system.own.domain.pretrem;

import lombok.Getter;
import lombok.Setter;
import team.lourd.network.system.own.domain.Model;
import team.lourd.network.system.own.domain.Record;
import team.lourd.network.system.own.domain.netel.NEDiagram;

import javax.persistence.*;
import java.util.List;

/** 
* @Description: 用于记录预处理模型的基本信息
* @Author: Lourd 
* @Date: 2019/1/21 
*/
@Table(name = "pm_model")
@Entity
@Getter
@Setter
public class PMModel extends Model {

    private String type;

    @OneToOne(mappedBy = "pmModel", cascade = CascadeType.ALL)
    private PMWork pmWork;

    @OneToMany(mappedBy = "pmModel",cascade = CascadeType.ALL)
    private List<Record> records;

    @ManyToMany(cascade = CascadeType.ALL)
    private List<NEDiagram> neDiagrams;

}
